package com.exercise;

public class MyThread extends Thread {
    public MyThread (String s) {
        super( s );
    }
    public void run() {
        for (int i =0; i<10; i++) {
            try {
                sleep( 1000 );
            } catch (Exception e) { }
            System.out.println( getName() );
        }
    }
}
